import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/Admin/Login',
    method: 'post',
    data
  })
}

export function Forgot(data) {
  return request({
    url: '/Admin/Forgot_password',
    method: 'post',
    data
  })
}

export function Enroll(data) {
  return request({
    url: '/Admin/Enroll',
    method: 'post',
    data
  })
}
export function getCaptcha() {
  return request({
    url: '/Admin/captcha',
    method: 'get',
    headers: {
      'Content-Type': 'image/png'
    }
  })
}

export function logout() {
  return request({
    url: '/vue-admin-template/user/logout',
    method: 'post'
  })
}
export function AddselectQuestion(data) {
  return request({
    url: '/Teacher/DanXuanQuestionAddd',
    method: 'post',
    data
  })
}
export function updateSummary(data) {
  return request({
    url: '/Student/StudentFeedback',
    method: 'post',
    data
  })
}
export function getList() {
  return request({
    url: '/Teacher/bulletinView',
    method: 'post'
  })
}
export function getData(data) {
  return request({
    url: '/Student/account',
    method: 'post',
    data
  })
}
export function updateData(data) {
  return request({
    url: '/Student/updateCurrentPasswordPage',
    method: 'post',
    data
  })
}
// 数据分析
export function getStatistics() {
  return request({
    url: '/Teacher/Statistics',
    method: 'post'
  })
}
export function submitQuestion(data) {
  return request({
    url: '/Teacher/DanXuanQuestionAddd',
    method: 'post',
    data
  })
}
export function JianDaQuestion(data) {
  return request({
    url: '/Teacher/JianDaQuestionAddd',
    method: 'post',
    data
  })
}
export function PanXuanQuestion(data) {
  return request({
    url: '/Teacher/PanXuanQuestionAddd',
    method: 'post',
    data
  })
}
export function DuoXuanQuestion(data) {
  return request({
    url: '/Teacher/DuoXuanQuestionAddd',
    method: 'post',
    data
  })
}
export function getCertificates(data) {
  return request({
    url: '/Student/ExamRecordsCertificateView',
    method: 'post',
    data
  })
}
export function practice_questio() {
  return request({
    url: '/Student/practice_questio',
    method: 'post'
  })
}
export function practice_type(data) {
  return request({
    url: '/Student/practice_typ',
    method: 'post',
    data
  })
}
